package org.m.example;

import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class DemoD {
    // byType+byName
//    @Autowired
    @Qualifier(value = "C1")  // 不能独立存在
//    @Resource   //先按照名字再按照类型
    private DemoC C1;
}
